/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managedbean.Workspace;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org.primefaces.model.ScheduleModel;

/**
 *
 * @author Zhang Ying
 */
@ManagedBean
@ViewScoped
public class ScheduleManagerBean {
    
    // for view my schedule
    private ScheduleModel model;

    /** Creates a new instance of ScheduleManagerBean */
    public ScheduleManagerBean() {
    }
    
    // for view my schedule
    public ScheduleModel getModel() {
        return model;
    }

    public void setModel(ScheduleModel model) {
        this.model = model;
    }
    
    // for general purpose
    private String getRedirectPath(String path) {
        return path + "?faces-redirect=true";
    }
}
